package com.caseProject.puremvc.model.vo
{
	public class ElementVO
	{
		private var _id:int;
		private var _posX:Number;
		private var _posY:Number;
		private var _type:String;
		private var _name:String = "";
		private var _entry:String = "";
		private var _doWhile:String = "";
		private var _exit:String = "";
		private var _heightValue:Number;
		private var _widthValue:Number;
		
		private static var ID:int = 0;
		
		public function ElementVO()
		{
			this.id = ID++;
		}

		public function get widthValue():Number
		{
			return _widthValue;
		}

		public function set widthValue(value:Number):void
		{
			_widthValue = value;
		}

		public function get heightValue():Number
		{
			return _heightValue;
		}

		public function set heightValue(value:Number):void
		{
			_heightValue = value;
		}

		public function get exit():String
		{
			return _exit;
		}

		public function set exit(value:String):void
		{
			_exit = value;
		}

		public function get doWhile():String
		{
			return _doWhile;
		}

		public function set doWhile(value:String):void
		{
			_doWhile = value;
		}

		public function get entry():String
		{
			return _entry;
		}

		public function set entry(value:String):void
		{
			_entry = value;
		}

		public function get name():String
		{
			return _name;
		}

		public function set name(value:String):void
		{
			_name = value;
		}

		public function get type():String
		{
			return _type;
		}

		public function set type(value:String):void
		{
			_type = value;
		}

		public function get posY():Number
		{
			return _posY;
		}

		public function set posY(value:Number):void
		{
			_posY = value;
		}

		public function get posX():Number
		{
			return _posX;
		}

		public function set posX(value:Number):void
		{
			_posX = value;
		}

		public function get id():int
		{
			return _id;
		}

		public function set id(value:int):void
		{
			_id = value;
		}
		
		public function toString ():String
		{
			var tag:String = '<element id="' + this.id + 
							 '" posX="' + this.posX + 
							 '" posY="' + this.posY + 
							 '" type="' + this.type +
							 '" name="' + this.name +
							 '" entry="' + this.entry +
							 '" doWhile="' + this.doWhile +
							 '" exit="' + this.exit +
							 '" heightValue="' + this.heightValue +
							 '" widthValue="' + this.widthValue +'"/>';
			return tag;
		}
	}
}